package br.com.wssa.email.exception;

import br.com.wssa.email.constants.ExceptionConstants;

/**
 * EmailException.
 */
public class EmailException extends Exception {

    private static final long serialVersionUID = 1L;
    private ExceptionConstants err;

    public EmailException(ExceptionConstants exceptionConstants, Throwable throwable) {
        super(throwable);
    }

    public EmailException(String err, Throwable throwable) {
        super(err, throwable);
    }

    public EmailException(ExceptionConstants err) {
        super(err.getMessage());

        this.err = err;
    }

    public final ExceptionConstants getErr() {
        return err;
    }
}